<%@ Page Language="C#" MasterPageFile="~/MasterPageMcSigAdmin.master" AutoEventWireup="true"
    CodeFile="EntidadesListado.aspx.cs" Inherits="EntidadesListado" Title="Untitled Page" %>

<%@ Register Assembly="FUA" Namespace="Subgurim.Controles" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1 class="planes">
        Entidades Listado</h1>
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
        DataSourceID="SqlDataSource2" KeyFieldName="ENT_ID" Width="98%">
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="All">
            </AllButton>
            <NextPageButton Text="Next &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Prev">
            </PrevPageButton>
        </SettingsPager>
        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
            <Header ImageSpacing="10px" SortingImageSpacing="10px">
            </Header>
          
        </Styles>
        <Columns>
            <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                <EditButton Visible="True">
                </EditButton>
                <NewButton Visible="True">
                </NewButton>
                <DeleteButton Visible="True">
                </DeleteButton>
                <CancelButton Visible="True">
                </CancelButton>
                <UpdateButton Visible="True">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn FieldName="ENT_ID" ReadOnly="True" Visible="False"
                VisibleIndex="0">
                <EditFormSettings Visible="False" />
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Razon Social" FieldName="ENT_RAZON_SOCIAL"
                VisibleIndex="1">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Nombre Representante" FieldName="ENT_NOMBRE_REPRESENTANTE"
                VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Tipo" FieldName="ENT_TIPO" VisibleIndex="3">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Telefono" FieldName="ENT_TELEFONO" VisibleIndex="4">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Direcci&#243;n" FieldName="ENT_DIRECION" VisibleIndex="5">
            </dxwgv:GridViewDataTextColumn>
        </Columns>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <StylesEditors>
            <CalendarHeader Spacing="11px">
            </CalendarHeader>
            <ProgressBar Height="25px">
            </ProgressBar>
        </StylesEditors>
    </dxwgv:ASPxGridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConflictDetection="CompareAllValues"
        ConnectionString="<%$ ConnectionStrings:MCSIGConnectionString %>" DeleteCommand="DELETE FROM [SIG_ENTIDADES] WHERE [ENT_ID] = @original_ENT_ID AND [ENT_RAZON_SOCIAL] = @original_ENT_RAZON_SOCIAL AND (([ENT_NOMBRE_REPRESENTANTE] = @original_ENT_NOMBRE_REPRESENTANTE) OR ([ENT_NOMBRE_REPRESENTANTE] IS NULL AND @original_ENT_NOMBRE_REPRESENTANTE IS NULL)) AND (([ENT_TIPO] = @original_ENT_TIPO) OR ([ENT_TIPO] IS NULL AND @original_ENT_TIPO IS NULL)) AND (([ENT_TELEFONO] = @original_ENT_TELEFONO) OR ([ENT_TELEFONO] IS NULL AND @original_ENT_TELEFONO IS NULL)) AND (([ENT_DIRECION] = @original_ENT_DIRECION) OR ([ENT_DIRECION] IS NULL AND @original_ENT_DIRECION IS NULL))"
        InsertCommand="INSERT INTO [SIG_ENTIDADES] ([ENT_RAZON_SOCIAL], [ENT_NOMBRE_REPRESENTANTE], [ENT_TIPO], [ENT_TELEFONO], [ENT_DIRECION]) VALUES (@ENT_RAZON_SOCIAL, @ENT_NOMBRE_REPRESENTANTE, @ENT_TIPO, @ENT_TELEFONO, @ENT_DIRECION)"
        OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [ENT_ID], [ENT_RAZON_SOCIAL], [ENT_NOMBRE_REPRESENTANTE], [ENT_TIPO], [ENT_TELEFONO], [ENT_DIRECION] FROM [SIG_ENTIDADES]"
        UpdateCommand="UPDATE [SIG_ENTIDADES] SET [ENT_RAZON_SOCIAL] = @ENT_RAZON_SOCIAL, [ENT_NOMBRE_REPRESENTANTE] = @ENT_NOMBRE_REPRESENTANTE, [ENT_TIPO] = @ENT_TIPO, [ENT_TELEFONO] = @ENT_TELEFONO, [ENT_DIRECION] = @ENT_DIRECION WHERE [ENT_ID] = @original_ENT_ID AND [ENT_RAZON_SOCIAL] = @original_ENT_RAZON_SOCIAL AND (([ENT_NOMBRE_REPRESENTANTE] = @original_ENT_NOMBRE_REPRESENTANTE) OR ([ENT_NOMBRE_REPRESENTANTE] IS NULL AND @original_ENT_NOMBRE_REPRESENTANTE IS NULL)) AND (([ENT_TIPO] = @original_ENT_TIPO) OR ([ENT_TIPO] IS NULL AND @original_ENT_TIPO IS NULL)) AND (([ENT_TELEFONO] = @original_ENT_TELEFONO) OR ([ENT_TELEFONO] IS NULL AND @original_ENT_TELEFONO IS NULL)) AND (([ENT_DIRECION] = @original_ENT_DIRECION) OR ([ENT_DIRECION] IS NULL AND @original_ENT_DIRECION IS NULL))">
        <DeleteParameters>
            <asp:Parameter Name="original_ENT_ID" Type="Decimal" />
            <asp:Parameter Name="original_ENT_RAZON_SOCIAL" Type="String" />
            <asp:Parameter Name="original_ENT_NOMBRE_REPRESENTANTE" Type="String" />
            <asp:Parameter Name="original_ENT_TIPO" Type="String" />
            <asp:Parameter Name="original_ENT_TELEFONO" Type="String" />
            <asp:Parameter Name="original_ENT_DIRECION" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="ENT_RAZON_SOCIAL" Type="String" />
            <asp:Parameter Name="ENT_NOMBRE_REPRESENTANTE" Type="String" />
            <asp:Parameter Name="ENT_TIPO" Type="String" />
            <asp:Parameter Name="ENT_TELEFONO" Type="String" />
            <asp:Parameter Name="ENT_DIRECION" Type="String" />
            <asp:Parameter Name="original_ENT_ID" Type="Decimal" />
            <asp:Parameter Name="original_ENT_RAZON_SOCIAL" Type="String" />
            <asp:Parameter Name="original_ENT_NOMBRE_REPRESENTANTE" Type="String" />
            <asp:Parameter Name="original_ENT_TIPO" Type="String" />
            <asp:Parameter Name="original_ENT_TELEFONO" Type="String" />
            <asp:Parameter Name="original_ENT_DIRECION" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="ENT_RAZON_SOCIAL" Type="String" />
            <asp:Parameter Name="ENT_NOMBRE_REPRESENTANTE" Type="String" />
            <asp:Parameter Name="ENT_TIPO" Type="String" />
            <asp:Parameter Name="ENT_TELEFONO" Type="String" />
            <asp:Parameter Name="ENT_DIRECION" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
</asp:Content>
